package com.mouseoverstudio.brekee;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public abstract class Command {

	public Process exec() throws IOException {
		String bashCommand = this.toBashCommand();
		return Runtime.getRuntime().exec(bashCommand);
	}

	public abstract String toBashCommand();

}
